import request from '@/utils/request'

//1.获取任务列表页面参数
export function conf(query) {
  return request({
    url: '/task/conf',
    method: 'get',
    params: query
  })
}
//2.任务详情数据(审)
export function detail(query) {
  return request({
    url: '/task/'+query.taskId,
    method: 'get'
    // params: query
  })
}
//2.任务详情数据(查)
export function detail2(query) {
  return request({
    url: '/workList/'+query.taskId,
    method: 'get'
    // params: query
  })
}
//3.自动接单开关
export function autoReceiveSwitch(data) {
  return request({
    url: '/autoReceive/switch',
    method: 'post',
    data
  })
}
//4.调单
export function changeResponsible(data) {
  return request({
    url: '/task/changeResponsible',
    method: 'post',
    data
  })
}
//5.未处理任务
export function unprocess(data) {
  return request({
    url: '/task/unprocess',
    method: 'post',
    data
  })
}
//6.已处理任务
export function processed(data) {
  return request({
    url: '/task/processed',
    method: 'post',
    data
  })
}
//7.全部任务
export function all(data) {
  return request({
    url: '/task/all',
    method: 'post',
    data
  })
}
//8.工单状态变化列表
export function statusChangeList(data) {
  return request({
    url: '/task/statusChangeList',
    method: 'post',
    data
  })
}
//9.任务审核暂存
export function taskSave(data) {
  return request({
    url: '/task/save',
    method: 'post',
    data
  }, 'json')
}
//10.任务审核页面参数
export function auditConf(data) {
  return request({
    url: '/task/audit/conf',
    method: 'post',
    data
  })
}
//11.决策
export function audit(data) {
  return request({
    url: '/task/audit',
    method: 'post',
    data
  }, 'json')
}
//12.电核新增电话
export function addPhone(data) {
  return request({
    url: '/task/callCheck/addPhone',
    method: 'post',
    data
  })
}
//13.电核拨打记录
export function addRecord(data) {
  return request({
    url: '/task/callCheck/addRecord',
    method: 'post',
    data
  })
}
//14.电核拨打结果
export function callCheckResult(data) {
  return request({
    url: '/task/callCheck/result',
    method: 'post',
    data
  })
}
//15.外部核查人工审核意见表
export function updateAdvice(data) {
  return request({
    url: '/task/deepSearch/updateAdvice',
    method: 'post',
    data
  })
}



